import { lazyWithPreload } from '@/utils/lazily'

export const CoreRepl = lazyWithPreload(() => import('../Repls').then(x => ({ default: x.CoreRepl })))
export const MiniPreviewRepl = lazyWithPreload(() => import('../Repls').then(x => ({ default: x.MiniPreviewRepl })))

export function preloadRepl() {
  CoreRepl.preload()
  MiniPreviewRepl.preload()
}
